package com.example.demo.mapper;

import com.example.demo.entity.Userinfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * Created by IntelliJ IDEA.
 * User: zm
 * Date: 2023/6/14
 */

@Mapper
public interface UserMapper {
    Userinfo getUserByName(@Param("username") String username);

    Userinfo getUserById(@Param("id") Integer id);
}
